  <table class="table">
    <thead>
      <tr>
        <th class="first"><%= "#{t 'helpers.label.order_item.presentation'}" %></th>
        <th><%= "#{t 'helpers.label.order_item.number'}" %></th>
        <th><%= "#{t 'helpers.label.order_item.parameters'}" %></th>
        <th><%= "#{t 'helpers.label.order_item.price'}" %>&nbsp;(Kč)</th>
        <th><%= "#{t 'helpers.label.order_item.tax'}" %>&nbsp;(%)</th>
        <th><%= "#{t 'helpers.label.order_item.quantity'}" %></th>
        <th class="last"><%= "#{t 'helpers.label.order_item.total'}" %>&nbsp;(Kč)</th>
      </tr>
    </thead>
    <tbody>
      <% unless f.object.order_items.blank? %>
        <%= f.fields_for :order_items, :validate => false do |item| %>
          <tr>
            <td><%= item.text_field :presentation, :maxlength => 70, :size => 24 %></td>
            <td><%= item.text_field :number, :maxlength => 30, :size => 8 %></td>
            <td><%= item.object.parameters %></td>
            <td><%= item.text_field :price, :maxlength => 16, :size => 6 %></td>
            <td><%= item.text_field :tax, :maxlength => 5, :size => 3 %></td>
            <td><%= item.text_field :quantity, :size => 3 %>&nbsp;<%= item.object.amount_type_name %></td>
            <td><%# item.text_field :total, :size => 5 %></td>
          </tr>
        <% end %>
      <% else %>
        <tr>
          <th colspan="10">Nebyly nalezeny žádné položky objednávky.</th>
        </tr>
      <% end %>
    </tbody>
  </table>